package com.zbkj.admin.model.community;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 社区评论表
 * </p>
 *
 * @author HZW
 * @since 2023-03-07
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("eb_community_reply")
@Schema(description = "CommunityReply对象 社区评论表")
public class CommunityReply implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "评论类型：1-评论，2-回复")
    @TableField("`type`")
    private Integer type;

    @Schema(description = "发言用户ID")
    @TableField("uid")
    private Integer uid;

    @Schema(description = "内容")
    @TableField("content")
    private String content;

    @Schema(description = "一级评论ID")
    @TableField("parent_id")
    private Integer parentId;

    @Schema(description = "一级用户ID")
    @TableField("parent_uid")
    private Integer parentUid;

    @Schema(description = "原评论ID")
    @TableField("review_id")
    private Integer reviewId;

    @Schema(description = "原评论用户ID")
    @TableField("review_uid")
    private Integer reviewUid;

    @Schema(description = "点赞数")
    @TableField("count_start")
    private Integer countStart;

    @Schema(description = "评论数")
    @TableField("count_reply")
    private Integer countReply;

    @Schema(description = "审核状态:0-待审核，1-审核通过，2-审核失败")
    @TableField("audit_status")
    private Integer auditStatus;

    @Schema(description = "拒绝原因")
    @TableField("refusal")
    private String refusal;

    @Schema(description = "文章id")
    @TableField("note_id")
    private Integer noteId;

    @Schema(description = "是否删除，0-未删除，1-删除")
    @TableField("is_del")
    private Integer isDel;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private Date updateTime;


}
